var article = require('../models/ArticleModel');
var banner = require('../models/BannerModel');
var product = require('../models/ProductModel');
module.exports = function(req,res){
    banner.getBannerList(function(bannerList){
        article.getArticleByClass('about',function(articleRow){
        	product.getProductLimit('8',function(productList){
                res.render('index',{banner:bannerList,article:articleRow[0],product:productList});
        	})

        })
    })
}